
[#include "single/layout/layout02/layout.ftl"/]
[@htmlHead]
<link href="${jpath}/assets/public/plugins/jqGrid/css/ui.jqgrid-bootstrap.css" rel="stylesheet" type="text/css"/>
[/@htmlHead]

[@htmlBody]
<div class="row">
    <div class="col-xs-12">
        <ul class="nav nav-tabs ">
            <li>
                <a href="${base}/role/view/index">
                   角色列表
                </a>
            </li>
            <li class="active">
                <a href="javascript:void(0)">
                   数据范围
                </a>
            </li>
        </ul>
    </div>
</div>
<form class="form-horizontal " style="margin: 15px  0 15px" id="search-form">

    <div class="form-group">

        <label class="col-xs-12 col-sm-1 control-label">名称：</label>

        <div class="col-xs-12 col-sm-2">
            <input type="text" name="name" class="form-control input-medium">
        </div>

        <div class="col-xs-12 col-sm-2">
            <button class=" btn btn-info btn-sm" type="button" onclick="doSearch()"><i class="ice-icon fa fa-search"></i>查找
            </button>
        </div>
    </div>
</form>

<div class="row">
    <input name="roleId" id="roleId" value="${id}" type="hidden"/>


    <div class="col-xs-12">

        <table id="jqGrid"></table>

        <div id="jqGridPager"></div>

    </div>
</div>

<div class="form-group mrg-t-md">
    <div class=" col-xs-12 " align="center">
        <input type="button" class="btn btn-info btn-sm" value="保存" onclick="doSave()"/>
        <input type="button" onclick="tools.goto('${base}/role/view/index')" class="btn btn-sm" value="返回"/>
    </div>
</div>

[/@htmlBody]

[@htmlFoot]
<script type="text/javascript" src="${jpath}/assets/public/plugins/jqGrid/i18n/grid.locale-cn.js"></script>
<script type="text/javascript" src="${jpath}/assets/public/plugins/dialog/bootbox.js"></script>
<script type="text/javascript" src="${jpath}/assets/public/plugins/jqGrid/jquery.jqGrid.min.js"></script>
<script type="text/javascript" src="${jpath}/assets/public/plugins/jqGrid/jqGrid-extends.js"></script>
<script type="text/javascript" src="${base}/plugins/single/js/module/rule/dataRule.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        loadData();
    });
</script>

[/@htmlFoot]